package com.teamall.web.main.db.po;

import org.apache.commons.lang.StringUtils;

import com.teamall.framework.dto.AbstractDto;

import java.math.BigDecimal;
import java.text.NumberFormat;

public class CodeStatVillagePO extends AbstractDto{
	private Integer  townId;
	private String  townName;
	private Integer  villageId;
	private String  villageCode;
	private String  villageName;
	private Integer  residentPop;
	private Long  povertyPop;
	private BigDecimal povertyRate;
    private String povertyRatePercent;

    public String getPovertyRatePercent() {
        NumberFormat nt = NumberFormat.getPercentInstance();
        //设置百分数精确度2即保留两位小数
        nt.setMinimumFractionDigits(2);
        return nt.format(povertyRate.doubleValue());
    }

    public Integer getTownId() {
        return townId;
    }
    public void setTownId(Integer townId) {
        this.townId = townId;
    }

    
    public String getTownName() {
        return StringUtils.isBlank(townName) ? townName : townName.trim();
    }
    public void setTownName(String townName) {
        this.townName = townName;
    }
    
    
    public Integer getVillageId() {
        return villageId;
    }
    public void setVillageId(Integer villageId) {
        this.villageId = villageId;
    }

    
    public String getVillageCode() {
        return StringUtils.isBlank(villageCode) ? villageCode : villageCode.trim();
    }
    public void setVillageCode(String villageCode) {
        this.villageCode = villageCode;
    }
    
    
    public String getVillageName() {
        return StringUtils.isBlank(villageName) ? villageName : villageName.trim();
    }
    public void setVillageName(String villageName) {
        this.villageName = villageName;
    }
    
    
    public Integer getResidentPop() {
        return residentPop;
    }
    public void setResidentPop(Integer residentPop) {
        this.residentPop = residentPop;
    }

    
    public Long getPovertyPop() {
        return povertyPop;
    }
    public void setPovertyPop(Long povertyPop) {
        this.povertyPop = povertyPop;
    }


    public BigDecimal getPovertyRate() {
        return povertyRate;
    }

    public void setPovertyRate(BigDecimal povertyRate) {
        this.povertyRate = povertyRate;
    }
}